<!-- 引入公共部分 -->
{{extend '../common/layout.html'}}

{{block 'link'}}
<!-- 添加css链接 -->
    <link rel="stylesheet" href="/static/admin/css/bootstrap.min.css">

    <link rel="stylesheet" href="/static/admin/css/interview.css">
{{/block}}
{{block 'main'}}
<!-- body代码 -->
<!-- 头部代码 -->
<div id="topper" class="layui-bg-cyan">
    <div id="title">
        <img src="/static/admin/img/logo1.png" alt="">
        <span id="title_wrap">未来面试</span>
    </div>
    <div id="toppperRight" class="centerY">
        <div id="admin">
            <button class="admin" name="{{userInfo.id}}">面试官：{{userInfo.name}}</button>
        </div> 
        <span id="quit" flag="2" onclick="openLoginOutWinFun()">
            <span style="color:#fff;font-size:15px;" >
                <i class="layui-icon layui-icon-logout " style="font-size: 18px; "></i>
            退出
            </span>
        </span>
    </div>
</div>
    <div class="layui-container ayui-row" id="content">
        <div class="layui-col-md2" id="Left">
            <ul id="left_ul">
                <li><h2>面试者信息</h2></li>
                <li class="li_left">姓名：{{result?result.name:""}}</li>
                <li class="li_left">班级：{{result?result.classes:""}}</li>
                <li class="li_left">状态：{{result?result.state:""}}</li>
                <li class="li_left" class="studentId" name="{{result?result.studentId:''}}">学号：{{result?result.studentId:""}}</li>
            </ul>
            <span class="layui-btn layui-btn-normal" id="viewQuestion" onclick="openQuestionWinFUn()">题库</span>
            <!-- <span class="layui-btn" id="enter" onclick="enterFun()">直接录取</span> -->
        </div>
        <div class="layui-col-md10" id="right">
            <div id="nav">
                <a href="index">面试者管理</a>
                <span>面试进行中</span><br>
                <div id="Left_Two" name="{{result.interviewersId}}">
                    <b>面试者信息:</b><br>
                    <span style="display: inline-block;margin-right: 20px;">姓名：{{result?result.name:""}}</span>
                    <span style="display: inline-block;margin-right: 20px;">班级：{{result?result.classes:""}}2</span>
                    <span style="display: inline-block;margin-right: 20px;">状态：{{result?result.state:""}}</span>
                    <span style="display: inline-block;margin-right: 20px;" class="studentId" name="{{result?result.studentId:''}}">学号：{{result?result.studentId:""}}</span>
                    <span style="color:#fff" id="viewQuestion_two" onclick="openQuestionWinFUn()">题库</span>
            </div>
            </div>
            <div class="wrap_item">
                <h1>一、新生简历</h1><br>
                <hr>
                <div class="imgs" name="{{result.firstPath}}"><img src="{{result.firstPath=='未上传简历'?'': result.firstPath}}" onclick="imgFun()" alt="简历正面未上传"></div>
                <div class="imgs" name="{{result.nextPath}}"><img src="{{result.nextPath=='未上传简历' ? '': result.nextPath}}" onclick="imgFun()" alt="简历反面未上传"></div>
            </div>
            <div class="wrap_item" id="wrap_two">
                <h1>二、面试官看法</h1><br>
                <hr>
                <h2>分数记录表</h2>
                <table lay-even class="layui-table" > 
                    <thead>
                        <tr>
                          <td>面试官</td>
                          <td>态度</td>
                          <td>沟通能力</td>
                          <td>抗压能力</td>
                          <td>心里素质</td>
                          <td>应变能力</td>
                          <td>自学能力</td>
                          <td>对小组了解</td>
                          <td>总分(70)</td>
                          <td>状态</td>
                        </tr> 
                    </thead>
                    <tbody id="tybody_score">
                        
                    </tbody>
                    
                </table>
                <hr>
                <h2>评论记录表</h2>
                <table lay-even class="layui-table" > 
                    <thead>
                        <tr>
                          <td>面试官</td>
                          <td>评论</td>
                          <td>状态</td>
                        </tr> 
                    </thead>
                    <tbody id="tybody">
                        
                    </tbody>
                    
                </table>
            </div>
            <div class="wrap_item" id="wrap_three">
                <div id=wrapCover_three></div>
                <h1 id="title_three">三、面试打分</h1><br>
                <hr>
                <!-- <form class="layui-form" action="" style="width:70%;margin: 0 auto;" id="scoreForm"> -->
                <form class="layui-form" action="../admin/interview/grade"  method="get" id="scoreForm">
                    
                    <div class="layui-form-item">
                        <label class="layui-form-label"><b>沟通能力</b></label>
                        <div class="layui-input-block">
                            <input type="radio" name="communicate" value="10" title="10" >
                            <input type="radio" name="communicate" value="9" title="9" >
                            <input type="radio" name="communicate" value="8" title="8" >
                            <input type="radio" name="communicate" value="7" title="7" >
                            <input type="radio" name="communicate" value="6" title="6" >
                            <input type="radio" name="communicate" value="5" title="5" >
                            <input type="radio" name="communicate" value="4" title="4" >
                            <input type="radio" name="communicate" value="3" title="3" >
                            <input type="radio" name="communicate" value="2" title="2" >
                            <input type="radio" name="communicate" value="1" title="1" >
                            <input type="radio" name="communicate" value="0" title="0" >
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label"><b>自学能力</b></label>
                        <div class="layui-input-block">
                            <input type="radio" name="study" value="10" title="10" >
                            <input type="radio" name="study" value="9" title="9" >
                            <input type="radio" name="study" value="8" title="8" >
                            <input type="radio" name="study" value="7" title="7" >
                            <input type="radio" name="study" value="6" title="6" >
                            <input type="radio" name="study" value="5" title="5" >
                            <input type="radio" name="study" value="4" title="4" >
                            <input type="radio" name="study" value="3" title="3" >
                            <input type="radio" name="study" value="2" title="2" >
                            <input type="radio" name="study" value="1" title="1" >
                            <input type="radio" name="study" value="0" title="0" >
                        </div>
                      </div>
                      <div class="layui-form-item">
                        <label class="layui-form-label"><b>应变能力</b></label>
                        <div class="layui-input-block">
                            <input type="radio" name="strain" value="10" title="10">
                            <input type="radio" name="strain" value="9" title="9" >
                            <input type="radio" name="strain" value="8" title="8" >
                            <input type="radio" name="strain" value="7" title="7" >
                            <input type="radio" name="strain" value="6" title="6" >
                            <input type="radio" name="strain" value="5" title="5" >
                            <input type="radio" name="strain" value="4" title="4" >
                            <input type="radio" name="strain" value="3" title="3" >
                            <input type="radio" name="strain" value="2" title="2" >
                            <input type="radio" name="strain" value="1" title="1" >
                            <input type="radio" name="strain" value="0" title="0" >
                        </div>
                      </div>
                      <div class="layui-form-item">
                        <label class="layui-form-label"><b>心里素质</b></label>
                        <div class="layui-input-block">
                            <input type="radio" name="heart" value="10" title="10" >
                            <input type="radio" name="heart" value="9" title="9" >
                            <input type="radio" name="heart" value="8" title="8" >
                            <input type="radio" name="heart" value="7" title="7" >
                            <input type="radio" name="heart" value="6" title="6" >
                            <input type="radio" name="heart" value="5" title="5" >
                            <input type="radio" name="heart" value="4" title="4" >
                            <input type="radio" name="heart" value="3" title="3" >
                            <input type="radio" name="heart" value="2" title="2" >
                            <input type="radio" name="heart" value="1" title="1" >
                            <input type="radio" name="heart" value="0" title="0" >
                        </div>
                      </div>
                      <div class="layui-form-item">
                        <label class="layui-form-label"><b>抗压能力</b></label>
                        <div class="layui-input-block">
                            <input type="radio" name="compression" value="10" title="10" >
                            <input type="radio" name="compression" value="9" title="9" >
                            <input type="radio" name="compression" value="8" title="8" >
                            <input type="radio" name="compression" value="7" title="7" >
                            <input type="radio" name="compression" value="6" title="6" >
                            <input type="radio" name="compression" value="5" title="5" >
                            <input type="radio" name="compression" value="4" title="4" >
                            <input type="radio" name="compression" value="3" title="3" >
                            <input type="radio" name="compression" value="2" title="2" >
                            <input type="radio" name="compression" value="1" title="1" >
                            <input type="radio" name="compression" value="0" title="0" >
                        </div>
                      </div>
                      <div class="layui-form-item">
                        <label class="layui-form-label"><b>态度</b></label>
                        <div class="layui-input-block">
                            <input type="radio" name="attitude" value="10" title="10" >
                            <input type="radio" name="attitude" value="9" title="9" >
                            <input type="radio" name="attitude" value="8" title="8" >
                            <input type="radio" name="attitude" value="7" title="7" >
                            <input type="radio" name="attitude" value="6" title="6" >
                            <input type="radio" name="attitude" value="5" title="5" >
                            <input type="radio" name="attitude" value="4" title="4" >
                            <input type="radio" name="attitude" value="3" title="3" >
                            <input type="radio" name="attitude" value="2" title="2" >
                            <input type="radio" name="attitude" value="1" title="1" >
                            <input type="radio" name="attitude" value="0" title="0" >
                        </div>
                      </div>
                      <div class="layui-form-item">
                          <label class="layui-form-label"><b>小组了解度</b></label>
                          <div class="layui-input-block">
                            <input type="radio" name="understand" value="10" title="10" >
                            <input type="radio" name="understand" value="9" title="9" >
                            <input type="radio" name="understand" value="8" title="8" >
                            <input type="radio" name="understand" value="7" title="7" >
                            <input type="radio" name="understand" value="6" title="6" >
                            <input type="radio" name="understand" value="5" title="5" >
                            <input type="radio" name="understand" value="4" title="4" >
                            <input type="radio" name="understand" value="3" title="3" >
                            <input type="radio" name="understand" value="2" title="2" >
                            <input type="radio" name="understand" value="1" title="1" >
                            <input type="radio" name="understand" value="0" title="0" >
                        </div>
                        <input type="hidden" name="state" id="state" value="{{result.state}}">
                        <input type="hidden" name="interviewersId" id="interviewersId" value="{{result.interviewersId}}">
                        <input type="hidden" name="userid " id="userId" value="">
                      </div>
                    <div class="layui-form-item layui-form-text">
                      <label class="layui-form-label"><b>意见看法</b></label>
                      <div class="layui-input-block">
                        <textarea name="desc" placeholder="在这里输入对该同学的看法（包括下轮面试需要侧重提问的方向）" class="layui-textarea"></textarea>
                      </div>
                    </div>
                    <div class="layui-form-item">
                      <div class="layui-input-block">
                        <button class="layui-btn">结束面试</button>
                        <button type="reset" class="layui-btn layui-btn-danger layui-anim layui-anim-downbit"  id="resetBtn">重置</button>
                        <span class="layui-btn layui-btn-normal" onclick="returnFun()">返回首页</span>
                      </div>
                    </div>
                  </form>
            </div>
            <div class="wrap_item" id="wrap_four">
                <h1>三、决策去留</h1><br>
                <hr>
                <button class="layui-btn" style="margin-left: 5%;" onclick="endFun()" name="已录取">面试结束</button>
                <!-- <button class="layui-btn layui-btn-danger"  onclick="submitFun()" name="已淘汰">淘汰</button> -->
                <button class="layui-btn layui-btn-normal" onclick="returnFun()">返回首页</button>
            </div>
        </div>
    </div>
    <div id="questionWin">
        <!-- <div id="question_conten">
            <div id="question_wrap">
            </div>
            <div class="btns">
                <button class="layui-btn btn-primary" onclick="prevFun()" id="leftBtn">上一题</button>
                <button class="layui-btn layui-btn-warm" onclick="middleBtn()" id="middleBtn">提问</button>
                <button class="layui-btn btn-primary" onclick="nextFun()" id="rightBtn">下一题</button>
            </div>
            
        </div> -->
        <h2>面试题库</h2>
        <hr>
        <span id="closeWin" onclick="closeWinFun()">X</span>
        <div class="questionsDiv">
           <hr>
        </div>
       
    </div>
    <div id="submitWin">
        <h2>面试结束</h2>
        <hr>
        <h3>您需要决定面试者去向</h3>
        <hr>
        <div id="submitWin_wrap">
            <btn class="layui-btn layui-btn-danger" onclick="submitFun()" name="已淘汰">淘汰</btn>
            <btn class="layui-btn layui-btn-warm" onclick="submitFun()" id="nextBtn" name="{{result.state=='待面试'?'待二面':'待三面'}}">进入下一轮</btn>
            <btn class="layui-btn btn-primary" onclick="submitFun()" name="已录取">录取</btn>
        </div>
    </div>
    <div id="coverWindow" onclick="closeWinFun()"></div>
    <div id="cover_div" onclick="cancleDelFun()"></div>
    <div class="wrapImg">
        <img src="https://kele-1305880580.cos.ap-beijing.myqcloud.com/zhaoxin/img/c447b61afbf940ee81b93d7505489e58.jpeg" id="bigImg" onclick="rolateFun()" alt="点击图片旋转" title="点击图片旋转">
    </div>
    <div id="coverLogin_div" onclick="cancleLoginOutFun()" ></div>
    <div id=windowDiv_loginOut>
        <h2 class="layui-bg-green" style="text-align:left">退出登录</h2>
        <span id="change_cancleA"  onclick="cancleLoginOutFun()" class="layui-icon layui-icon-close" ></span>
        <hr>
        <div id="windowDiv_wrap">
            是否确认退出登录？
        </div>
        <button class="layui-btn layui-btn-danger" id="cancleDel" onclick="cancleLoginOutFun()" style="background-color: #1E9FFF;">取消</button>
        <button class="layui-btn layui-btn-normal" id="submitDel" onclick="submitLoginOutFun()" style="background-color: #FF5722;">退出</button>
    </div>
    <div id=windowDiv>
        <h2 class="layui-bg-green" >提示信息</h2>
        <span id="change_cancleA"  onclick="cancleDelFun()"class="layui-icon layui-icon-close"  ></span>
        <hr>
        <div id="windowDiv_wrap">
            检测到您对该同学的评论和打分不完整，是否确定去留？
        </div>
        <button class="layui-btn layui-btn-normal" id="cancleDel" onclick="cancleDelFun()" >继续面试</button>
        <button class="layui-btn layui-btn-danger" id="submitDel" onclick="submitDelFun()">确定</button>
    </div>
    <div id="users_li"></div>
    <div id="my"></div>
    <div id="closeMyChange"></div>
{{/block}}
{{block 'script'}}
<!-- 添加js代码 -->
    <script src="/static/layui-v2.6.8/layui/layui.js"></script>
    <script src="/static/admin/js/interview.js"></script>
{{/block }}
